﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
using BLL.BLL;
using WindowsForms.Admin;

namespace WindowsForms
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();
        }

        private void bttaikhoan_Click(object sender, EventArgs e)
        {
      
        }

        private void buttonItem4_Click(object sender, EventArgs e)
        {
            FormNhanVien fr = new FormNhanVien();
            if (!ManagerForm.CheckExistForm(this, fr.Name))
            {
                fr.MdiParent = this;
                fr.Show();
            }
            else ManagerForm.ActiveChildren(this, fr.Name);

        }

        private void btnbophan_Click(object sender, EventArgs e)
        {
            FormBoPhan frbp = new FormBoPhan();
            if (!ManagerForm.CheckExistForm(this, frbp.Name))
            {
                frbp.MdiParent = this;
                frbp.Show();
            }
            else ManagerForm.ActiveChildren(this, frbp.Name);
        }

        private void btgiaidau_Click(object sender, EventArgs e)
        {
            FormGiaiDau frbp = new FormGiaiDau();
            if (!ManagerForm.CheckExistForm(this, frbp.Name))
            {
                frbp.MdiParent = this;
                frbp.Show();
            }
            else ManagerForm.ActiveChildren(this, frbp.Name);
        }

      

      
    }
}
